package demo;

public class Thread02 implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println("== 我在听DJ =="+i);
        }
    }

    public static void main(String[] args) {

        Thread02 t02 = new Thread02();
//        代理模式
//        Thread thread = new Thread(t02);
//        thread.start();

        new Thread(t02).start();

        for (int i = 0; i < 20; i++) {
            System.out.println("== 我在敲代码 =="+i);
        }
    }
}
